]> dgit.raspbian.org Git - linux-4.9.git/commit
brcmfmac: Ensure pointer correctly set if skb data location changes
authorJames Hughes <james.hughes@raspberrypi.org>
Mon, 24 Apr 2017 11:40:50 +0000 (12:40 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 26 Apr 2017 11:13:20 +0000 (12:13 +0100)
commitef302fca51efe927d7044cad016832cd4941a83f
tree551853574331eaff704307c888c936c41cbd4139
parent7c5acf4118fa34454a9021b4372f88a03b69b179
brcmfmac: Ensure pointer correctly set if skb data location changes

The incoming skb header may be resized if header space is
insufficient, which might change the data adddress in the skb.
Ensure that a cached pointer to that data is correctly set by
moving assignment to after any possible changes.

Signed-off-by: James Hughes <james.hughes@raspberrypi.org>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c